package com.my.behaviourtype.chain.nohierarchy;
/**
 * 
* 
* 每一个Filter之间是有先后顺序的,但是没有层级关系
* @author Hao.Tong
* @version 1.0
* @see 
* @modify
 */
public class Test {

	public static void main(String[] args) {
		FilterManager fm = new FilterManager();
		fm.add(new Filter1());
		fm.add(new Filter2());
		
		String s1 = "tom";
		String s2 = "jerry";
		StringBuffer req = new StringBuffer(s1);
		StringBuffer res = new StringBuffer(s2);
		fm.doFilter(req, res);
		System.out.println(req);
		System.out.println(res);
	}

}
